package com.ytc.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//如果手动指定扫描的包，那么默认的扫描包规则失效
@EnableDiscoveryClient
@MapperScan("com.ytc.system.mappers") //扫描指定报下的所有dao接口
//一旦指定使用ComponentScan扫描包名，默认的规则失效
@ComponentScan(basePackages = {"com.ytc.system","com.ytc.web"})
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }
}
